<script>
	export default {
		onLaunch: function() {
			console.log('App Launch')
			// const currentUrl = window.location.href; // 获取当前页面的URL
			// const domain = this.getRootDomain(currentUrl); // 获取URL中的域名
			// console.log('域名11:', domain);
			// uni.setStorageSync('yu_ming', domain);
		},
		onShow: function() {
			console.log('App Show')
		},
		onHide: function() {
			console.log('App Hide')
		},
		// methods: {
		// 	getRootDomain(url) {
		// 		const domain = url.split('/')[2]; // 获取URL中的域名部分
		// 		return domain.split(':')[0]; // 去除协议和端口
		// 	},

		// }
	}
</script>

<style lang="scss">
		@import "uview-ui/index.scss";
	#app{
		padding-top: env(safe-area-inset-top);
	}
	/*每个页面公共css */
	page {
		background: #F7F8FA;
	}

	.uni-date-x .icon-calendar {
		display: none;
	}

	.uni-date__x-input {
		color: rgba(34, 34, 34, 1);
		padding: 0 !important;
		height: 48rpx !important;
		line-height: 48rpx !important;
	}

	.uni-collapse,
	.uni-collapse-item__title-box,
	.uni-collapse-item__wrap {
		border-radius: 24rpx;
	}

	.uni-collapse-item__title-text {
		font-family: PingFangSC, PingFang SC;
		font-weight: 600;
		font-size: 32rpx !important;
		color: #222222 !important;
		line-height: 44rpx;
		text-align: left;
		font-style: normal;
		text-indent: 12rpx;
	}

	.uni-select,
	.uni-collapse-item__title.uni-collapse-item-border,
	.uni-collapse-item__wrap-content.uni-collapse-item--border {
		border: none !important;
	}

	.uni-select__input-text {
		font-family: PingFangSC, PingFang SC;
		font-weight: 400;
		font-size: 26rpx;
		color: #333333;
		line-height: 36rpx;
		text-align: center;
		font-style: normal;
	}


	.radio .uni-checkbox-input {
		border-radius: 50% !important;
	}

	.follow-read .uni-collapse-item__title-text {
		margin-left: 80rpx;
	}

	.question-answer .uni-collapse-item__title-text {
		margin-left: 0;
	}

	.question-answer .uni-collapse-item__title-box {
		padding-left: 0 !important;
	}
</style>
